<?php

namespace app\api\controller;

use app\BaseController;
use WebSocket\Client;

class Chat extends BaseController
{
    public function test()
    {
        $client = new Client('wss://chat.fxcyl.cn:9502?token='.$this->getToken());
        $client->send("是滴");
        var_dump($client->receive());
        $client->close();
    }
}
